<template>
    <div class="chatItem">

        <slot></slot>    

        <div class="bottomBtn">
           <p> <a href="javascript:;" @click="moreChat">加载更多</a></p>
        </div>

    </div>
    

</template>

<script>

export default {
    name:'chatItem',
    methods:{
        moreChat(){
            this.$emit('addImg','加载更多')
        }
    }
}
</script>

<style scoped>
.item{
    background: #fff;
    width: 730px;
    border-radius: 5px;
    position: relative;
    padding: 20px 0;
    margin: 20px 0;
}
.item .content{
    overflow: hidden;
}
.item .content img{
    max-width: 280px;
    margin: 0 20px 0 20px;
    float: left;
}
.item .content p{
    padding: 0 20px 20px;
     font: 14px/1.5em "Microsoft YaHei", 微软雅黑, "Hiragino Sans GB", "Hiragino Sans GB W3", tahoma, arial, simsun, 宋体;
    font-size: 14px;
}
.item .post-red{    
    top: -35px;
    right: 10px;
    margin-right: 20px;
    text-align: center;
    position: relative;
    float: right;
}
.item .post-red a{
    background: #4CAF50;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    border-radius: 8px;
}
.item  .dateview{
    position: absolute;
    left: 788px;
    top: 20px;
    width: 125px;
    line-height: 30px;
    background: #5EA51B;
    border-radius: 0px 40px;
    text-align: center;
    color: #fff;
}
.item::after{
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    left: 758px;
    top: 16px;
    background: #CCCCCE;
    border: 2px solid #fff;
    transition: all 0.5s;
}
.bottomBtn{
    padding: 20px 0;
}
.bottomBtn p{
    text-align: center;
}
.bottomBtn a{
    padding: 10px 10px;
    color: #fff;
    background: #4CAF50;
    border-radius: 3px;
}
</style>